package oneArmedBandit.theGame;

import android.graphics.drawable.AnimationDrawable;

public class WheelStopper extends Thread
{
	private OneArmedBanditActivity bandit;
	private AnimationDrawable animation;
	private int duration;
	
	public WheelStopper(OneArmedBanditActivity b, AnimationDrawable a, int d)
	{
		this.bandit = b;
		this.animation = a;
		this.duration = d;
	}
	
	public void run()
	{
		try
		{ Thread.sleep(duration); }
		catch (InterruptedException e)
		{ e.printStackTrace(); }
		this.animation.stop();
		this.bandit.compareImages();
	}
	
}
